home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 4.0 KB | 183 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: LinkSpcB.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODBaseLinkSpec_xh
- #define SOM_ODBaseLinkSpec_xh
-
- class ODBaseLinkSpec;
-
- #define ODBaseLinkSpec_MajorVersion 1
- #define ODBaseLinkSpec_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODBaseLinkSpec_API
- #define ODBaseLinkSpec_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODBaseLinkSpec;
- class ODStorageUnit;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODBaseLinkSpecCClassData ODBaseLinkSpecClassData
- #define ODBaseLinkSpecNewClass(major,minor) somNewVersionedClassReference(ODBaseLinkSpec,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODBaseLinkSpecMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODBaseLinkSpec class object, and the methods it introduces. */
- SOMEXTERN struct ODBaseLinkSpecClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken WriteLinkSpec;
- somMToken ReadLinkSpec;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- somMToken reserved4;
- } SOMDLINK ODBaseLinkSpecClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODBaseLinkSpec_Class_Source) && !defined(SOM_Module_linkspcb_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODBaseLinkSpecClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODBaseLinkSpec Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODBaseLinkSpec_WriteLinkSpec)(ODBaseLinkSpec *somSelf, Environment *ev,
- ODStorageUnit* su);
- typedef void (* SOMLINK somTD_ODBaseLinkSpec_ReadLinkSpec)(ODBaseLinkSpec *somSelf, Environment *ev,
- ODStorageUnit* su);
- }
-
- #endif /* ODBaseLinkSpec_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODBaseLinkSpec
- */
- class ODBaseLinkSpec : public ODObject
- {
- public:
-
- // ODBaseLinkSpec::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODBaseLinkSpec, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODBaseLinkSpec);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODBaseLinkSpec);
- #endif
- }
-
- // ODBaseLinkSpec::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: WriteLinkSpec */
- void WriteLinkSpec(Environment *ev,
- ODStorageUnit* su)
- {
- SOM_ResolveD(this,ODBaseLinkSpec,ODBaseLinkSpec,WriteLinkSpec)
- (this,ev,su);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: ReadLinkSpec */
- void ReadLinkSpec(Environment *ev,
- ODStorageUnit* su)
- {
- SOM_ResolveD(this,ODBaseLinkSpec,ODBaseLinkSpec,ReadLinkSpec)
- (this,ev,su);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* ODBaseLinkSpec */
-
-
-
- #endif /* SOM_ODBaseLinkSpec_xh */
-